<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ include file="/WEB-INF/common/public.jspf"%>
<%@ include file="/WEB-INF/common/easyui.jspf"%>


<script type="text/javascript">
	$(function() {
		$("#cancel").click(function(){
			$.ajax({
				type:"get",
				url:"/signin/cancel",
				success:function(){
					location.href="/index.jsp";
				}
				
			});
		})
		
		
		$(".link").click(function() {
			var title = this.title;
			if ($("#centerTab").tabs("exists",title)) {
				$("#centerTab").tabs("select",title)

			} else {
				
				$("#centerTab").tabs("add", {
					title : title,
					fit : true,
					content : title,
					closable : true,
					content:"<iframe src='/signin/"+this.id +"' title='"+this.title+"' height='100%' width='100%' frameborder='0' ></iframe>"

				})

			}

		})

	})
</script>

<title>主页面</title>
</head>

<body>

	<div id="main" class="easyui-layout" data-options="fit:true">
		<div
			data-options="region:'north',title:'学生签到系统',split:true,collapsible:false"
			style="height: 100px;">
			欢迎 <font color='red'>${sessionScope.teacher.tName}</font>
			登录          <button id="cancel">注销</button>
		</div>
		<input type="hidden" name="tId" value="${sessionScope.teacher.tId}"/>

		<div
			data-options="region:'west',title:'导航菜单',split:true,collapsible:true"
			style="width: 200px;">
			<div id="accordion" class="easyui-accordion"
				data-options="fit:true,selected:-1">
				<div title="学生签到" data-options=""
					style="overflow: auto; padding: 10px;">
					<ul style="list-style: none; padding: 0px; margin: 0px;">
						<li style="padding: 6px;"><a href="#" class="link"
							title="设置签到" id="setting"
							style="text-decoration: none; display: block; font-weight: bold;">设置签到</a>
						</li>
						<li style="padding: 6px;"><a href="#" class="link"
							title="查询签到历史" id="history"
							style="text-decoration: none; display: block; font-weight: bold;">查询签到历史</a>
						</li>
					</ul>

				</div>
				<div title="基本数据录入" data-options="" style="padding: 10px;">
					<ul id="tt" class="easyui-tree" >
					
						<li><span>教师信息管理</span>
							<ul>
								<li><span><a class="link"  id="addCourse" title="添加课程" href="#">添加课程</a></span></li>
								<li><span><a class="link" id="courseList" title="查询课程" href="#">查询课程</a></span></li>
								
								
							</ul>
						</li>
						<li><span>学生管理</span>
							<ul>
								<li><span><a href="#">录入学生信息</a></span></li>
								<li><span><a href="#">查询班级信息</a></span></li>
								
							</ul>
						</li>
						<li><span>教师管理</span>
							<ul>
								<li><span><a href="#">添加教师</a></span></li>
								<li><span><a href="#">查询教师</a></span></li>
								
							</ul>
						</li>
					</ul>



				</div>
				<div title="权限管理模块" >
					有时间才做
				</div>
				<div title="结尾"></div>
			</div>

		</div>
		<div
			data-options="region:'center',title:'主要内容',collapsible:false"
			style="background: #eee;">
			<div id="centerTab" class="easyui-tabs" data-options="fit:true">
				<div title="系统简介" data-options="closable:true"
					style="padding: 80px;">
					
					<div >
						<h1>小组信息 :</h1>
						<ul>
							<li><h2>141544202	 陈华彦</h2></li>
							<li><h2>141544207	魏     宁<h2></li>
							<li><h2>141544209	吴烁红</h2></li>
							<li><h2>141544203	邓智秀</h2></li>
							<li><h2>141544205	黄诗然</h2></li>
							
						</ul>
					</div>

				</div>

			</div>
		</div>

		
	</div>
	<div id="win2" >
		<img id="qrcode"/>
	</div> 
	<div id="win">
	
	</div>   
	<input type="hidden" id="starttime1234" value=""/>


</body>

</html>